package accounting_system;

import java.awt.Image;
import java.util.ArrayList;

public class Person {
    private String firstName;
    private String secondName;
    private String surName;
    private String birthDate;
    private String workStartDate;
    private String workFinishDate;
    private String function;
    private int level;
    private Image photo;
    //private PersonCardFrame personCard;
    private final ArrayList<Group> group = new ArrayList();
    
    public Person(){
        
    }
    
    public String getFirstName(){
        return firstName;
    }
    
    public void setFirstName(String fn){
        firstName = fn;
        
    }
    
    public String getSecondName(){
        return secondName;
    }
    
    public void setSecondName(String sn){
        secondName = sn;
    }
    
    public String getSurName(){
        return surName;
    }
    
    public void setSurName(String srn){
        surName = srn;
    }
    
    public String getBirthDate(){
        return birthDate;
    }
    
    public void setBirthDate(String bd){
        birthDate = bd;
    }
    
    public String getWorkStartDate(){
        return workStartDate;
    }
    
    public void setWorkStartDate(String wsd){
        workStartDate = wsd;
    }
    
    public String getWorkFinishDate(){
        return workFinishDate;
    }
    
    public void setWorkFinishDate(String wfd){
        workFinishDate = wfd;
    }
    
    public String getFunction(){
        return function;
    }
    
    public void setFunction(String f){
        function = f;
    }
    
    public int getLevel(){
        return level;
    }
    
    public void setLevel(int l){
        level = l;
    }
    
//    public PersonCardFrame getPersonCard(){
//        return personCard;
//    }
    
    public void showPersonCard(){
//        personCard = 
          new PersonCardFrame(this);
//        personCard = null;
    }
        
//    public void removePersonCard(){
//        personCard = null;
//    }
    
    
    public Image getPhoto(){
        return photo;
    }
    
    public void setPhoto(Image ph){
        photo = ph;
    }
    
    public void addGroup(Group gr){
        addGroup(gr);
    }
    
    public void removeGroup(Group gr){
        group.remove(gr);
    }
    
    public ArrayList<Group> getListGroup(){
        return group;
    }
}
